package com.zua.service.impl;
import com.zua.entity.Catelog;
import com.zua.mapper.CatelogMapper;
import com.zua.service.CatelogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@Service
@Transactional(readOnly = false,timeout = 5,propagation = Propagation.REQUIRED,isolation = Isolation.READ_COMMITTED)
public class CatelogServiceImpl implements CatelogService {
    @Autowired
    public CatelogMapper catelogMapper;
    public void setCatelogMapper(CatelogMapper catelogMapper) {
        this.catelogMapper = catelogMapper;
    }
    @Override
    public List<Catelog> showAll() {
        return catelogMapper.showAll();
    }
    @Override
    public Catelog selectByid(int catelogId) {
        return catelogMapper.selectByid(catelogId);
    }
}
